﻿<?
		include_once _ROOT."/class/pageturn.inc.php";
		if($this){
					$pagenum = $_GET["pagenum"]*$page-$page;
					$start = $pagenum>$num?0:$pagenum;
					$start = $start<0?"0":$start;
					$pages = new PageTurn($num,$page);
					$this->smarty->assign("total",$pages->total());
					$this->smarty->assign("navbar",$pages->navbar(10));
					$this->smarty->assign("navbaradmin",$pages->navbaradmin(10));
		}else{
					global $in;
					$pagenum = $_GET["pagenum"]*$page-$page;
					$start = $pagenum>$num?0:$pagenum;
					$start = $start<0?"0":$start;
					$pages = new PageTurn($num,$page);
					$smarty->assign("total",$pages->total());
					$smarty->assign("navbar",$pages->navbar(10));
					$smarty->assign("navbaradmin",$pages->navbaradmin(10));
		}

?>